package com.sky.mapper;

import com.sky.Entity.SetMealDishs;
import com.sky.vo.SetmealDishVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SetmealDishsMapper {
    void insert(Long mealId, List<SetMealDishs> setmealDishes);

    @Delete("delete from setmeal_dish where setmeal_id=#{id}")
    void deleteBySetmealId(Long id);

    @Select("select * from setmeal_dish where setmeal_id=#{setmealId}")
    List<SetMealDishs> queryBySetmealId(Long setmealId);

    void deleteBySetmealIds(List<Long> ids);

    List<SetmealDishVo> queryDishsBySetmealId(Long id);
}
